﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Security.Cryptography;
using System.Diagnostics;

namespace SoManyQQNumber
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
          

           string address=   QQTool.GetAddress();
           Debug.WriteLine("Address--->" + address);
           pictureBox1.Image = QQTool.GetCode();
           string a = Application.UserAppDataPath;
        }

        private void button1_Click(object sender, EventArgs e)
        {

            string str= QQTool.RegisterQQNum("火狐狸",QQTool.GetRSAPassword(GetJsPath(),"rs","huohuli123456").ToString(),"1","1989","9","27",textBox1.Text.ToString());

            Debug.WriteLine("返回代码--->" + str);

            MessageBox.Show(str);

        }

        public string GetJsPath() 
        {
            string pathJs = Application.StartupPath + @"\qq_rsa.js";
            Debug.WriteLine("JSPath--->" + pathJs);

            return pathJs;

        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            pictureBox1.Image = QQTool.GetCode();
        }

       
    }
}
